package org.sucri.dao;

import javax.persistence.*;

/**
 * Created by IntelliJ IDEA.
 * User: Wen Yu
 * Date: Aug 30, 2007
 * Time: 11:26:54 PM
 * To change this template use File | Settings | File Templates.
 */
@Entity
@Table(catalog = "vpp", name = "ITEMS")
public class ItemsEntity
{
  private int id;
  private int typeid;
  private String userid;
  private String status;
  private int cost;

  @Basic
  @Column(name = "cost", nullable = false, length = 10)
  public int getCost()
  {
    return cost;
  }

  public void setCost(int cost)
  {
    this.cost = cost;
  }

  @Basic
  @Column(name = "status", nullable = false, length = 10)
  public String getStatus()
  {
    return status;
  }

  public void setStatus(String status)
  {
    this.status = status;
  }

  @Basic
  @Column(name = "userid", nullable = false, length = 6)
  public String getUserid()
  {
    return userid;
  }

  public void setUserid(String userid)
  {
    this.userid = userid;
  }

  @Basic
  @Column(name = "typeid", nullable = false, length = 10)
  public int getTypeid()
  {
    return typeid;
  }

  public void setTypeid(int typeid)
  {
    this.typeid = typeid;
  }

  @Id
  @Column(name = "id", nullable = false, length = 10)
  public int getId()
  {
    return id;
  }

  public void setId(int id)
  {
    this.id = id;
  }
}
